import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SAttribute } from "../../../../../Message/Public/SAttribute";
import { JSON } from "../../../../../com/mui/serialization/json/JSON";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
//class FriendBlessNumInfoUpdateCommand
    
    export  class FriendBlessNumInfoUpdateCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            var loc2=null;
            super.call(arg1);
            var loc1=(arg1.messageBase as SAttribute).valueStr;
            if (loc1 != "") 
            {
                loc2 = JSON.deserialize(loc1);
                _cache.friendBless.sendBlessCount = loc2["blass_count"];
                NetDispatcher.dispatchCmd(ServerCommand.FriendBlessNumChange, loc2["blass_count"]);
            }
            return;
        }
    }
